package com.i7time.service;

import com.i7time.entity.User;

import java.util.Map;

/**
 * Created by Hsia on 16/6/3.
 */
public interface UserService {

    boolean isExist(String tel);//判断用户是否存在

    User getUserByTel(String Tel);//登录,通过tel拿到User对象

    User register(String tel, String password, String nick_name, String avatar, String sex, String birthday);//注册

    //首次登录输入详细信息
    User addUserDetail(long id, String nick_name, String avatar, String sex, String birthday);

    //重置密码
    boolean resetPassword(long id, String newPwd);

    User getUserById(long id);

    //修改属性
    User modifyUser(long id, Map<String, Object> propertyMap);

    //修改头像
    boolean uploadUserPic(long id, String imgUrl);


    User thirdLogin(String openid,String thirdLoginType,String nickname,String sex,String avatar);

    User  getUserByOpenid(String openid);
}
